/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package main;

import java.io.IOException;
/**
 *
 * @author Ej-Dý
 */
public class Main {

    
     public static void main(String[] args) {
        try {
            if (args.length != 2) {
                System.out.println("arguments: <input.pas> <output.j>");
                System.exit(0);
            }
            Compiler c = new Compiler();
            c.compile(args[0], args[1]);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }


}
